package cn.sdhuijin.vms.sms.callback;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.smslib.AGateway;
import org.smslib.IOrphanedMessageNotification;
import org.smslib.InboundMessage;
import org.springframework.stereotype.Component;

@Component
public class OrphanedMessageNotification implements
		IOrphanedMessageNotification {
	final Logger logger = LoggerFactory
			.getLogger(OrphanedMessageNotification.class);

	@Override
	public boolean process(AGateway gateway, InboundMessage msg) {
		logger.warn("孤儿短信：{}", msg);
		return true;
	}

}
